const api = require('../utils/request.js')
import {request} from '../utils/request'

module.exports = {
    // 获取商品列表
    goodsList(data) {
      return api.request({
        url: '/wechat/goods/list',
        method: 'get',
        data
      })
    },
  // 商品添加
  campAddGoods(data) {
    console.log("wkydata::",data)
    return api.request({
      url: '/wechat/goods',
      method: 'post',
      data
    })
  },


  Delgoods(goodsId) {
    return api.request({
      url: '/wechat/goods/delete/' + goodsId,
      method: 'delete'
    })
  },

}